package main.social.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class SocialInterceptor extends HandlerInterceptorAdapter {
	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
//		String uri = request.getRequestURI();
//		if (!uri.endsWith("login.do") && !uri.endsWith("logout.do")) {
//			User userData = (User) request.getSession().getAttribute(
//					"LOGGEDIN_USER");
//			if (userData == null) {
//				response.sendRedirect("login.do");
//				return false;
//			}
//		}
		return true;
	}

}
